home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / CommResources.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.8 KB  |  59 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CommResources.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__COMMRESOURCES__') = 'UNDEFINED' THEN
  18. __COMMRESOURCES__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  22.     include 'OSUtils.a'
  23.     ENDIF
  24. ;        include 'Types.a'                                            ;
  25. ;            include 'ConditionalMacros.a'                            ;
  26. ;        include 'MixedMode.a'                                        ;
  27. ;        include 'Memory.a'                                            ;
  28.  
  29. ;    tool classes (also the tool file types)    
  30. classCM                            EQU        'cbnd'
  31. classFT                            EQU        'fbnd'
  32. classTM                            EQU        'tbnd'
  33.  
  34. ;    version of the Comm Resource Manager    
  35. curCRMVersion                    EQU        2
  36. ; constants general to the use of the Communications Resource Manager 
  37. crmType                            EQU        9                    ; queue type    
  38. crmRecVersion                    EQU        1                    ; version of queue structure 
  39. ;    error codes 
  40. crmGenericError                    EQU        -1
  41. crmNoErr                        EQU        0
  42.  
  43. ; data structures general to the use of the Communications Resource Manager 
  44. CRMRec                     RECORD    0
  45. qLink                     ds.l    1                                    ;reserved
  46. qType                     ds.w    1                                    ;queue type -- ORD(crmType) = 9
  47. crmVersion                 ds.w    1                                    ;version of queue element data structure
  48. crmPrivate                 ds.l    1                                    ;reserved
  49. crmReserved                 ds.w    1                                    ;reserved
  50. crmDeviceType             ds.l    1                                    ;type of device, assigned by DTS
  51. crmDeviceID                 ds.l    1                                    ;device ID; assigned when CRMInstall is called
  52. crmAttributes             ds.l    1                                    ;pointer to attribute block
  53. crmStatus                 ds.l    1                                    ;status variable - device specific
  54. crmRefCon                 ds.l    1                                    ;for device private use
  55. sizeof                     EQU    34
  56.                         ENDR
  57.  
  58.     ENDIF ; __COMMRESOURCES__
  59.